require('admin/config.php'); $con = mysql_connect($server, $dbuser, $dbpass); mysql_select_db($database, $con); $producto = strip_tags(trim($_GET["producto"])); $producto=((integer)$producto); $catalogo = strip_tags(trim($_GET["catalogo"])); $catalogo=((integer)$catalogo); $raiz = strip_tags(trim($_GET["raiz"])); $raiz=((integer)$raiz); if (empty($raiz)) {$raiz='0';} $sql = "SELECT * FROM CATEGORIAN WHERE ID='$producto'"; $queEmp = mysql_query($sql, $con); $rsEmp = mysql_fetch_assoc($queEmp); $total = mysql_num_rows($queEmp); if ($total == 0) { exit; } $sql1 = "SELECT * FROM CATEGORIAN WHERE ID='$raiz'"; $queEmp1 = mysql_query($sql1, $con); $rsEmp1 = mysql_fetch_assoc($queEmp1); $sql5 = "SELECT * FROM STOCKC WHERE ID='1'"; $queEmp5 = mysql_query($sql5, $con); $rsEmp5 = mysql_fetch_assoc($queEmp5); ?>